﻿using Nantianmen.Domain.Models;
using System.ComponentModel.DataAnnotations;

namespace Nantianmen.Domain.Dtos
{
    public class ClusterDto : AuditTimeDto
    {
        [Required(AllowEmptyStrings = false)]
        public string Id { get; set; } = default!;

        public string? Remark { get; set; }

        public string? LoadBalancingPolicy { get; set; }
        public SessionAffinityConfig? SessionAffinity { get; set; }
        public HealthCheckConfig? HealthCheck { get; set; }
        public HttpClientConfig? HttpClient { get; set; }
        public ForwarderRequestConfig? HttpRequest { get; set; }
        public Dictionary<string, string>? Metadata { get; set; }
    }
}
